package com.niit.controller;

import com.niit.service.PaymentOpenService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class PayMentController {

  @Autowired
    public PaymentOpenService paymentOpenService;

    @GetMapping("consumer/payment/nacos/{id}")

    public  String getPayment(@PathVariable("id") int id){
        return paymentOpenService.getPaymemt(id);
    }
}
